package com.css.dzj.dzjportal.modules.creditinfobase.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Objects;

public class ZfjgCreditAssessEntity {
    private String creditAssessId;
    private String taskNo;
    private String enterpriseName;
    private String enterpriseIdType;
    private String enterpriseCreditCode;
    private String enterpriseMark;
    private String enterpriseType;
    private String columnTime;

    @Id
    @Column(name = "CREDIT_ASSESS_ID")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getCreditAssessId() {
        return creditAssessId;
    }

    public void setCreditAssessId(String creditAssessId) {
        this.creditAssessId = creditAssessId;
    }

    @Basic
    @Column(name = "TASK_NO")
    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Basic
    @Column(name = "ENTERPRISE_NAME")
    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    @Basic
    @Column(name = "ENTERPRISE_ID_TYPE")
    public String getEnterpriseIdType() {
        return enterpriseIdType;
    }

    public void setEnterpriseIdType(String enterpriseIdType) {
        this.enterpriseIdType = enterpriseIdType;
    }

    @Basic
    @Column(name = "ENTERPRISE_CREDIT_CODE")
    public String getEnterpriseCreditCode() {
        return enterpriseCreditCode;
    }

    public void setEnterpriseCreditCode(String enterpriseCreditCode) {
        this.enterpriseCreditCode = enterpriseCreditCode;
    }

    @Basic
    @Column(name = "ENTERPRISE_MARK")
    public String getEnterpriseMark() {
        return enterpriseMark;
    }

    public void setEnterpriseMark(String enterpriseMark) {
        this.enterpriseMark = enterpriseMark;
    }

    @Basic
    @Column(name = "ENTERPRISE_TYPE")
    public String getEnterpriseType() {
        return enterpriseType;
    }

    public void setEnterpriseType(String enterpriseType) {
        this.enterpriseType = enterpriseType;
    }

    @Basic
    @Column(name = "COLUMN_TIME")
    public String getColumnTime() {
        return columnTime;
    }

    public void setColumnTime(String columnTime) {
        this.columnTime = columnTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZfjgCreditAssessEntity that = (ZfjgCreditAssessEntity) o;
        return Objects.equals(creditAssessId, that.creditAssessId) &&
                Objects.equals(taskNo, that.taskNo) &&
                Objects.equals(enterpriseName, that.enterpriseName) &&
                Objects.equals(enterpriseIdType, that.enterpriseIdType) &&
                Objects.equals(enterpriseCreditCode, that.enterpriseCreditCode) &&
                Objects.equals(enterpriseMark, that.enterpriseMark) &&
                Objects.equals(enterpriseType, that.enterpriseType) &&
                Objects.equals(columnTime, that.columnTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(creditAssessId, taskNo, enterpriseName, enterpriseIdType, enterpriseCreditCode, enterpriseMark, enterpriseType, columnTime);
    }
}
